import moment from "moment";
//时间过滤器

export const dateFilter = (date, spe = '-') => {
  return moment(date).format(`YYYY${spe}MM${spe}DD HH:mm:ss`);
}

export const newsDateFilter = (date, spe = '-') => {
  return moment(date).format(`YYYY${spe}MM${spe}DD`);
}